package org.smr.ministore.entities;

import org.apache.commons.lang3.ObjectUtils;
import org.blade.entities.base.BizEntity;

import java.lang.NullPointerException;
/**
 * Authority实体,对应表：t_authority
**/
public class Authority extends BizEntity<Long>{




	/**
	* 主键
	**/
	private java.lang.Long id;

	/**
	 * 设置主键的值
	 * @param id
	**/
	public void  setId(java.lang.Long id){
		this.id = id;
	}
	/**
	 * 获取主键的值
	**/
	public  java.lang.Long getId(){
		return this.id;
	}


	/**
	* 类型
	**/
	private java.lang.Integer type;

	/**
	 * 设置类型的值
	 * @param type
	**/
	public void  setType(java.lang.Integer type){
		this.type = type;
	}
	/**
	 * 获取类型的值
	**/
	public  java.lang.Integer getType(){
		return this.type;
	}


	/**
	* URL
	**/
	private java.lang.String url;

	/**
	 * 设置URL的值
	 * @param url
	**/
	public void  setUrl(java.lang.String url){
		this.url = url;
	}
	/**
	 * 获取URL的值
	**/
	public  java.lang.String getUrl(){
		return this.url;
	}


	/**
	* 上级权限编号
	**/
	private java.lang.Long parentId;

	/**
	 * 设置上级权限编号的值
	 * @param parentId
	**/
	public void  setParentId(java.lang.Long parentId){
		this.parentId = parentId;
	}
	/**
	 * 获取上级权限编号的值
	**/
	public  java.lang.Long getParentId(){
		return this.parentId;
	}


	/**
	* 操作类型
	**/
	private java.lang.Integer operationType;

	/**
	 * 设置操作类型的值
	 * @param operationType
	**/
	public void  setOperationType(java.lang.Integer operationType){
		this.operationType = operationType;
	}
	/**
	 * 获取操作类型的值
	**/
	public  java.lang.Integer getOperationType(){
		return this.operationType;
	}


	/**
	* 
	**/
	private java.lang.Long createBy;

	/**
	 * 设置的值
	 * @param createBy
	**/
	public void  setCreateBy(java.lang.Long createBy){
		this.createBy = createBy;
	}
	/**
	 * 获取的值
	**/
	public  java.lang.Long getCreateBy(){
		return this.createBy;
	}


	/**
	* 
	**/
	private java.lang.Long updateBy;

	/**
	 * 设置的值
	 * @param updateBy
	**/
	public void  setUpdateBy(java.lang.Long updateBy){
		this.updateBy = updateBy;
	}
	/**
	 * 获取的值
	**/
	public  java.lang.Long getUpdateBy(){
		return this.updateBy;
	}


	/**
	* 
	**/
	private java.util.Date createDate;

	/**
	 * 设置的值
	 * @param createDate
	**/
	public void  setCreateDate(java.util.Date createDate){
		this.createDate = createDate;
	}
	/**
	 * 获取的值
	**/
	public  java.util.Date getCreateDate(){
		return this.createDate;
	}


	/**
	* 
	**/
	private java.util.Date updateDate;

	/**
	 * 设置的值
	 * @param updateDate
	**/
	public void  setUpdateDate(java.util.Date updateDate){
		this.updateDate = updateDate;
	}
	/**
	 * 获取的值
	**/
	public  java.util.Date getUpdateDate(){
		return this.updateDate;
	}


	/**
	* 
	**/
	private java.lang.String remark;

	/**
	 * 设置的值
	 * @param remark
	**/
	public void  setRemark(java.lang.String remark){
		this.remark = remark;
	}
	/**
	 * 获取的值
	**/
	public  java.lang.String getRemark(){
		return this.remark;
	}


	private User user;

	/**
	 * User 对象是分布式对象, 安全中心中使用userId
	 */
	private java.lang.Long userId;

	private Role role;


	public Role getRole() {
		return role;
	}

	public void setRole(Role role) {
		this.role = role;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
}